﻿<div class="account-info">
@if (Request.IsAuthenticated)
{
    <text> Hello, @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })!
    @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
    {
        @Html.AntiForgeryToken()
        <a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
    }
    </text>
}
else
{
        @Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })
        @Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })
}
</div>
<style>
    .account-info
    {
        position: absolute;
        top: 165px;
        left: 1010px;
    }
    .account-info #registerlink
    {
        color:red;
        font-weight:bold;
    }
    .account-info #loginlink
    {
        font-weight:bold;
        color:blue;
    }
</style>
